﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo09
{
    class Bird : Animal, Takeoff, IFly, Land
    {
        public string layEggs;

        public string LayEggs {
            get { return this.layEggs; }
            set { this.layEggs = value; }
        }

        public Bird(string ani, string layEggs) : base(ani) {
            this.layEggs = layEggs;
        }
        public void Lay()
        {
            Console.WriteLine("能{0}",this.layEggs);
        }
        public void Fly()
        {
            Console.WriteLine("能飞");
        }

        public void La()
        {
            Console.WriteLine("能落地");
        }

        public void Take()
        {
            Console.WriteLine("能起飞");
        }
    }
}
